{extend name="template/base" /}
{block name="content"}
<div class="page-container">
    <!-- FROM 表单模糊查询 -->
    <form class="mb-20" method="get" action="{:\\think\\Url::build($Request.action)}">
        <!-- 查询条件 -->
        <div style="width:250px;margin-left:25px;font-size: 15px;margin-top:5px;"><b>活动详情</b></div>
        <input type="text" class="input-text" style="width:250px;margin:5px 5px;" placeholder="活动标题" name="title" value="{$Request.param.title}">
        <input type="text" class="input-text" style="width:250px;margin:5px 5px;" placeholder="举办地点" name="a_city" value="{$Request.param.a_city}">
        <div style="margin:5px 0px;" align="center"><div style="border: 1px solid #d3d3d3;width: 85%;"></div></div>
        <div style="width:250px;margin-left:25px;font-size: 15px;margin-top:5px;"><b>活动日期</b></div>

        <!-- 查询按钮 -->
        <div style="padding-left: 50px; margin: 25px 0px;" id="href_adress">
            <a href="#href_adress" name="xia_head">
                <button type="submit" class="btn btn-success radius button_search" style="margin-right: 20px;"><i class="Hui-iconfont">&#xe665;</i> 搜索</button>
            </a>
            <a href="#" class="btn btn-secondary radius" onclick="empty()"><i class="Hui-iconfont">&#xe6dd;</i>清空</a>
        </div>

    </form>

    <!-- 中间 : || 添加 数据总数  -->
    <div class="cl pd-5 bg-1 bk-gray">
        <span class="l">{tp:menu menu="add" /}</span>
        <span class="r pt-5 pr-5">共有数据 ：<strong>{$count ?? '0'}</strong> 条</span>
    </div>

    <table class="table table-border table-bordered table-hover table-bg mt-20">
        <thead>
        <tr class="text-c">
            <!--<th hidden width="25"><input type="checkbox"></th>-->
            <th width="20">ID</th>
            <th width="">活动图片</th>
            <th width="70">活动地点</th>
            <th width="">活动详细地点</th>
            <th width="">活动时间</th>
            <!--<th width="">年</th>-->
            <!--<th width="">月</th>-->
            <!--<th width="">日</th>-->
            <th width="70">活动场次</th>
            <th width="80">活动编码</th>
            <th width="170">标题</th>
            <th width="190">活动详情</th>
            <th width="">活动链接</th>
            <th width="">操作</th>
        </tr>
        </thead>
        <tbody>
        {volist name="list" id="vo"}
        <tr class="text-c">
            <td hidden><input type="checkbox" name="id[]" value="{$vo.id}"></td>
            <td>{$vo.id}</td>
            <td><img style="width:100px;height: 100px;" src="{$vo.activity_pto}"/></td>
            <td>{$vo.a_city}</td>
            <td>{$vo.activity_adress}</td>
            <td>{$vo.start_time} ~ {$vo.activity_deadline}</td>
            <td>{$vo.a_top}</td>
            <td>{$vo.activity_code}</td>
            <td>{$vo.title}</td>
            <td>{$vo.detail_url}</td>
            <td>{$vo.url}</td>
            <td class="f-14">{tp:menu menu='sedit' /}</td>
        </tr>
        {/volist}
        </tbody>
    </table>
    <div class="page-bootstrap">{$page ?? ''}</div>
</div>
{/block}
{block name="script"}
<script type="text/javascript" src="__LIB__/My97DatePicker/WdatePicker.js"></script>
<script>
    $(function () {
        if ($("strong").text() >= 15){
            table_fixed('.table_fixed');
            location.href="#href_adress";
        }
    })
    function empty() {
        $('.input-text').val('');
    }
</script>
{/block}